#!/bin/bash
PROG=gekai
clear
echo
echo
echo
echo
fpc $PROG.dpr -Sd -Foobj -FUobj -g -gl -FE.. \
	-FiImaging -FuImaging -FuImaging/Extensions -FuImaging/Extras/Extensions -FuImaging/JpegLib -FuImaging/ZLib -FlImaging/Extras/Extensions/J2KObjects \
	-FuSoar -Fu../common -Fu../common/lnet/lib \
	-Fu/usr/lib/fpc/2.0.4/units/i386-linux/opengl \
	-Fu/usr/lib/fpc/2.0.4/units/i386-linux/x11 \
	-Fu/usr/lib/fpc/2.0.4/units/i386-linux/netdb \
	-Fu/usr/lib/fpc/2.0.4/source/fpcsrc/fcl/inc
	
if [ "$?" != "0" ]; then
  echo "Press enter to continue"
  read ANS
  exit 1
fi

cd ..
./gekai || read
cd src